<?php
/*
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online
 * @ PHP 7.2 & 7.3
 * @ Decoder version: 1.1.6
 * @ Release: 10/08/2022
 */

// Decoded file for php version 71.
namespace OSS\Http;

class ResponseCore
{
    public $header;
    public $body;
    public $status;
    public function __construct($header, $body, $status = NULL)
    {
        $this->header = $header;
        $this->body = $body;
        $this->status = $status;
        return $this;
    }
    public function isOK($codes = [200, 201, 204, 206])
    {
        if(is_array($codes)) {
            return in_array($this->status, $codes);
        }
        return $this->status === $codes;
    }
}

?>